/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package graphic;

import java.awt.Dimension;
import java.awt.Toolkit;
import javax.swing.JFrame;

import juego.Tablero;

/**
 *
 * @author maru
 */
public class StartFrame extends JFrame {
	
    public StartFrame() {
        super("Lasers & Mirrors");
        setBounds(1, 1, 400, 400);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setResizable(true);
        Toolkit toolkit = getToolkit();
        Dimension size = toolkit.getScreenSize();
        setLocation(size.width/2 - getWidth()/2, size.height/2 - getHeight()/2);
    }
    
    public void BeginGame(){
        StartPanel panel = new StartPanel(this);
        this.add(panel);
        panel.setVisible(true);
        panel.repaint();
    }

}






